#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    Qt::WindowFlags flags = windowFlags();   //获取已有flags
    setWindowFlags(flags | Qt::FramelessWindowHint);   //Qt::WindowStaysOnTopHint是窗体置顶显示
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_close_clicked()
{
    close();
}
